
from tools import *
import random

# 从动物列表xml中获得所有动物
l1=getTagContentList("animals.xml","type") 

# 从品牌列表xml中获得所有电器种类
l2=getAttributeValueList("brand.xml","bd","dq")

print("第八周作业的结果:")
for dw in l1:
    sanbu(dw,random.choice(l2))